package cn.interestingshop.service.goods;

import cn.interestingshop.entity.Goods;

import java.util.ArrayList;
import java.util.List;

public interface GoodsService {
    public Goods selectOne(Integer id);

    public List<Goods> selectAll(String keyWord);

    public  List<Goods> handlePageList(List<Goods> list,Integer currentPage,Integer pageSize);

    public List<Goods> selectAll(Integer currentPageNo, Integer pageSize);

    int findUserCount();

    int findUserCount(List<Goods> goods);


    public List<Goods> selectOne(Integer id, Integer type,Integer currentPageNo, Integer pageSize);

    int findUserCount(Integer id, Integer type);

    public int kjKc(int id,int stock);

    public int deleteById(int id);

    public int executeUpdate(Goods goods);

    public int insert(Goods goods);
}
